package com.ruoyi.project.poem.topictemplate.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 诗集模版对象 topic_template
 *
 * @author shixiangwen
 * @date 2022-06-29
 */
public class TopicTemplate extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 模版ID
     */
    @Excel(name = "模版ID")
    private Long id;

    /**
     * 名字
     */
    @Excel(name = "名字")
    private String name;

    /**
     * 封面
     */
    @Excel(name = "封面")
    private String cover;

    /**
     * 权重
     */
    @Excel(name = "权重")
    private Integer weight;

    /**
     * 背景
     */
    @Excel(name = "背景")
    private String background;

    /**
     * VIP模版
     */
    @Excel(name = "VIP模版")
    private Integer vip;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /**
     * 是否默认
     */
    @Excel(name = "是否默认")
    private Integer tacit;

    /**
     * 是否发布
     */
    @Excel(name = "是否发布")
    private Integer status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getCover() {
        return cover;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setBackground(String background) {
        this.background = background;
    }

    public String getBackground() {
        return background;
    }

    public void setVip(Integer vip) {
        this.vip = vip;
    }

    public Integer getVip() {
        return vip;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setTacit(Integer tacit) {
        this.tacit = tacit;
    }

    public Integer getTacit() {
        return tacit;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("cover", getCover())
                .append("weight", getWeight())
                .append("background", getBackground())
                .append("vip", getVip())
                .append("createdTime", getCreatedTime())
                .append("tacit", getTacit())
                .append("status", getStatus())
                .toString();
    }
}
